//
//  HttpForAgent.h
//  yixintong
//
//  Created by longziyuan on 15-6-10.
//
//

#import <Foundation/Foundation.h>
#import "ASIHTTPRequest.h"
#import "GlobalVar.h"
#define GetAdv @"getAdv" //请求广告数据
#define GetQueryPri @"queryPri" //滚动公告
#define GetLaunchView @"getLaunchView" //获取过场界面图片


@protocol requestForAgentDelegate <NSObject>
-(void)requestAdvSuccess:(NSString*)str;//获取拨号界面或者接听界面的广告数据
-(void)requestLuanchViewSuccess:(NSString*)str;//获取过场界面得到的数据
-(void)requestQueryPriSuccess:(NSString*)str;//获取拨号界面滚动字幕
@end
@interface HttpForAgent : NSObject<ASIHTTPRequestDelegate>
{
   // NSString*nsStrRequestType;
}
@property (nonatomic,assign) id<requestForAgentDelegate>delegate;
-(void)requestData:(NSString *)adtype setUsername:(NSString *)userName;
@end
